@echo off
setlocal
pushd %~dp0

call native-image JoeDemo lwjgl -O3 ^
-cp lwjgl\build\libs\*;lwjgl\lib\* ^
--enable-native-access=ALL-UNNAMED ^
--enable-native-access=org.graalvm.nativeimage.foreign ^
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED ^
--add-opens jdk.internal.vm.ci/jdk.vm.ci.runtime=ALL-UNNAMED ^
-H:+UnlockExperimentalVMOptions ^
-H:ReflectionConfigurationFiles=reflectconfig.json ^
-H:+ForeignAPISupport ^
--features=joe.ForeignRegistrationFeature ^


rem need:
rem avif.dll
rem glfw.dll
rem lwjgl.dll
rem lwjgl_opengl.dll
rem lwjgl_opengles.dll
rem lwjgl_stb.dll
rem miniaudio.dll
rem vec_x64.dll
rem <res>

pause
